Jason Haywood was hit just after 7:30 p.m. near the MBTA's Framingham Station, the Middlesex District Attorney's Office said. Investigators believe he was trying to cross the tracks as the train approached.
Officials pronounced him dead at the scene.
The incident caused long delays for the MBTA Framingham/Worcester Line Thursday night as police and paramedics cleared the scene.
The Middlesex District Attorney's Office is investigating the incident along with Transit Police.
Click here to follow Daily Voice Quincy and receive free news updates.